package com.pingpang.common.bean;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 这里是请求的数据类型
 * @author Soap0
 */
public class RequestBean implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String version;
	private String className;// 类名
	private String methodName;// 函数名称
	private Class<?>[] parameterTypes;// 参数类型
	private Object[] parameters;// 参数列表
	private String ip;//IP
	private int port;//端口
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getMethodName() {
		return methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	public Class<?>[] getParameterTypes() {
		return parameterTypes;
	}
	public void setParameterTypes(Class<?>[] parameterTypes) {
		this.parameterTypes = parameterTypes;
	}
	public Object[] getParameters() {
		return parameters;
	}
	public void setParameters(Object[] parameters) {
		this.parameters = parameters;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	@Override
	public String toString() {
		return "RequestBean [id=" + id + ", version=" + version + ", className=" + className + ", methodName="
				+ methodName + ", parameterTypes=" + Arrays.toString(parameterTypes) + ", parameters="
				+ Arrays.toString(parameters) + ", ip=" + ip + ", port=" + port + "]";
	}
	
}
